package com.huike.controller.contract;


import com.huike.dto.ContractDTO;
import com.huike.result.PageResult;
import com.huike.service.contract.ContractService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.util.annotation.NonNullApi;

@RestController
@RequestMapping
@ApiOperation("合同管理")
public class ContractController {

    @Autowired
    private ContractService contractService;

    @GetMapping("/contract/list")
    @ApiOperation("分页查询")
    public PageResult page(ContractDTO dto){
        PageResult pageResult=contractService.page(dto);
        return pageResult;
    }
}
